{template header}
<script src="static/bootstrap/js/utils.js"></script>
<link rel="stylesheet" href="static/calendar/js/calendar.css" />
<script type="text/javascript" charset="utf-8" src="static/calendar/calendar.php"></script>
<style>
    .hp-visited a:visited{color: #444;}
    .input-append button{font-size:12px;}
    select,.f12{font-size:12px;}
</style>
<div style="clear:both">
    <h5>
        <span class="add-on"><i class="icon-calendar"></i>黑名单 </span>
        <span class="add-on">
            <code><a href="./?c=admin&a=blackList" target="_blank">返回列表</a></code>
        </span>
    </h5>
</div>

<table class="table table-striped table-bordered table-hover" height="500"><tr><td>
    <div style="clear:both;margin: 50px;">
        <form class="form-horizontal" method="post">
            <div class="control-group">
                <label class="control-label">昵称 </label>
                <div class="controls">
                    <div>
                        <input type="text" readonly value="{$nickname}"/>
                    </div>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="forbid">禁言功能</label>
                <div class="controls">
                    {loop $func $k $v}
                    <input name="forbid[]" value="{$k}" type="checkbox" {if (!empty($info['forbid']) && in_array($k,$info[forbid]))} checked {/if} /> {$v}<br>
                    {/loop}
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="time">禁言时间</label>
                <div class="controls">
                    <div>
                        <input name="stime" readonly="readonly" id="starttimeid" value="{eval echo date('Y-m-d H:i:s',isset($info['stime']) ? $info['stime'] : time())}"/>
                        <input name="starttimebtn" type="button" id="starttimebtn" onclick="return showCalendar('starttimeid', '%Y-%m-%d %H:%M:%S', '24', false, 'starttimebtn');" value="选择" class="button" />
                        至
                        <input name="etime" readonly="readonly" id="endtimeid" value="{eval echo date('Y-m-d H:i:s',isset($info['etime']) ? $info['etime'] : time()+3600)}"/>
                        <input name="starttimebtn" type="button" id="endtimebtn" onclick="return showCalendar('endtimeid', '%Y-%m-%d %H:%M:%S', '24', false, 'endtimebtn');" value="选择" class="button" />
                    </div>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="mark">备注 </label>
                <div class="controls">
                    <textarea name="mark">{eval echo isset($info['mark']) ? $info['mark'] : ''}</textarea>
                </div>
            </div>

            <div class="control-group">
                <label class="control-label" for="inputStatus"></label>
                <div class="controls">
                    <input type="submit" id="inputSubmit" class="btn btn-primary" value="提交">&nbsp;&nbsp;
                    <input type="reset" id="inputreset" class="btn btn-inverse" value="重置">
                    <input type="hidden" name="id" value="{$id}" />
                </div>
            </div>
        </form>
    </div>
</td></tr>
</table>


{template footer}